package node;

import parser.Parser;

import java.io.IOException;

public class CondNode extends ASTNode {
    public final String name = "<Cond>";
    // Cond → LOrExp
    private final LOrExpNode lOrExpNode;

    public CondNode(LOrExpNode lOrExpNode) {
        this.lOrExpNode = lOrExpNode;
    }

    public LOrExpNode getlOrExpNode() {
        return lOrExpNode;
    }

    @Override
    public void show() throws IOException {
        lOrExpNode.show();
        Parser.parserWriter.write(name + "\n");
    }

}
